Skip to main content

PUT Outstream Player

Overview


The following table contains important information about the PUT method for updating an outstream player.

PUT Outstream Player
MethodPUT
URL or Endpoint/api/v1/projects/projectId/outstream-players
HeadersAuthorization
ParametersprojectId
BodyCheck request body below

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

Request Body

{
"publicId": "string",
"name": "string",
"responsive": true,
"width": 0,
"height": 0,
"releaseChannelId": 0,
"muteOnStart": true,
"viewableThresholdPercentage": 0,
"autoStartOnViewableOn": true,
"autoPauseOnViewableOn": true,
"volumeSlider": true,
"playButton": true,
"muteButton": true,
"controlBarIconsDefaultColor": "string",
"controlBarIconsHoverColor": "string",
"controlBarSliderProgressColor": "string",
"controlBarSliderRailColor": "string",
"controlBarSliderDraggerColor": "string"
}

Information about the fields that appear when you type in the request body are displayed in the table below.

Field NameTypeMandatoryDescription
playerIdstringYesThe ID of the outstream player.
namestringNoThe name of the outstream player.
responsivebooleanConditionalIf set to true, the player size will be responsive. In this case, width and height are not mandatory. If false, then width and height are required.
widthintegerConditionalThe width of the player in pixels. This field is mandatory if responsive is false.
heightintegerConditionalThe height of the player in pixels. This field is mandatory if responsive is false.
releaseChannelIdintegerNoThe ID of the release channel used for the player version.
muteOnStartbooleanNoIf true, the player will start muted.
viewableThresholdPercentageintegerNoThe percentage of player viewability required to trigger viewable events.
autoStartOnViewableOnbooleanNoIf true, the player will automatically start when it becomes viewable.
autoPauseOnViewableOnbooleanNoIf true, the player will automatically pause when it is no longer viewable.
volumeSliderbooleanNoWhether to display the volume slider control.
playButtonbooleanNoWhether to display the play button control.
muteButtonbooleanNoWhether to display the mute button control.
controlBarIconsDefaultColorstringNoColor for control bar icons in default state.
controlBarIconsHoverColorstringNoColor for control bar icons on hover.
controlBarSliderProgressColorstringNoColor of the progress part of the control bar slider.
controlBarSliderRailColorstringNoColor of the rail (background) of the control bar slider.
controlBarSliderDraggerColorstringNoColor of the dragger (handle) on the control bar slider.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "string",
"name": "string",
"responsive": true,
"width": 0,
"height": 0,
"releaseChannelId": 0,
"muteOnStart": true,
"viewableThresholdPercentage": 0,
"autoStartOnViewableOn": true,
"autoPauseOnViewableOn": true,
"volumeSlider": true,
"playButton": true,
"muteButton": true,
"controlBarIconsDefaultColor": "string",
"controlBarIconsHoverColor": "string",
"controlBarSliderProgressColor": "string",
"controlBarSliderRailColor": "string",
"controlBarSliderDraggerColor": "string",
"orderNumber": 0,
"releaseChannel": {
"id": 0,
"name": "string",
"originalPath": "string",
"templateOriginalPath": "string"s
}
},
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it returns true; otherwise, it returns false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from the back-end.
resultarray[Object]Returns the response object.
publicIdstringPublic ID of the outstream player.
namestringName of the outstream player.
responsivebooleanSpecifies if the player layout is responsive.
widthintegerWidth of the player in pixels (used when responsive is false).
heightintegerHeight of the player in pixels (used when responsive is false).
releaseChannelIdintegerThe ID of the release channel used for the player version.
muteOnStartbooleanIf true, the player starts muted.
viewableThresholdPercentageintegerThe percentage of player viewability required to trigger viewable events.
autoStartOnViewableOnbooleanIf true, the player will automatically start when it becomes viewable.
autoPauseOnViewableOnbooleanIf true, the player will automatically pause when it is no longer viewable.
volumeSliderbooleanWhether to display the volume slider control.
playButtonbooleanWhether to display the play button control.
muteButtonbooleanWhether to display the mute button control.
controlBarIconsDefaultColorstringColor for control bar icons in default state.
controlBarIconsHoverColorstringColor for control bar icons on hover.
controlBarSliderProgressColorstringColor of the progress part of the control bar slider.
controlBarSliderRailColorstringColor of the rail (background) of the control bar slider.
controlBarSliderDraggerColorstringColor of the dragger (handle) on the control bar slider.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed